package com.mesystem.util;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

public class PropertiesUtil {
	static Properties propFile;
	
	static{
		try {			
			InputStream is = PropertiesUtil.class.getResourceAsStream(Constantes.PATH_FILE_PROPERTIES);
			propFile = new Properties();
			propFile.load(is);
			is.close();
		} catch (IOException e) {
			System.out.println(e.getMessage());
		}
	}

	public static String getParamConfiguracion(String key){
		String prop = "";
		if(propFile!=null){
			prop = propFile.getProperty(key).toString();
		}
		return prop;
	}
}
